<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-danger" href="#"><i class="icon-lock"></i> 屏蔽</a>
		<a class="btn btn-warning" href="#"><i class="icon-unlock"></i> 解除屏蔽</a>
		<a class="btn btn-success" href="#"><i class="icon-edit"></i> 编辑</a>
	</div>
</div>
<table class="table table-bordered animate2 fadeInUp">
	<thead>
	<tr>
		<th>名称</th>
		<th>价格</th>
		<th>规格</th>
		<th>型号</th>
		<th>购买人</th>
		<th>使用者</th>
		<th>备注</th>
		<th style="width: 80px;text-align: center;">操作</th>
	</tr>
	</thead>
	<tbody>
	<#list pageBean.resultList as assets>
	<tr class="ui-widget-content">
		<td>${assets.name}</td>
		<td>${assets.price}</td>
		<td>${(assets.norms)!''}</td>
		<td>${assets.type}</td>
		<td>${assets.buyers}</td>
		<td>${(assets.users)!''}</td>
		<td>${assets.remark}</td>
		<td style="text-align: center;">
			<div id="tttttt" class="btn-group">
				<#if !assets.deleted>
				<a href="javascript:;" onclick="javascript: shield_assets('${assets.code}', '${assets.name}');return false;" data-toggle="tooltip" title="屏蔽" class="btn btn-xs btn-danger"><i class="icon-lock"></i></a>
				<#else>
				<a href="javascript:;" onclick="javascript: unshield_assets('${assets.code}', '${assets.name}');return false;" data-toggle="tooltip" title="解除屏蔽" class="btn btn-xs btn-warning"><i class="icon-unlock"></i></a>
				</#if>
				<a href="javascript:;" onclick="javascript: sys_load_handle('assets-edit_${assets.code}');return false;" data-toggle="tooltip" title="编辑" class="btn btn-xs btn-success"><i class="icon-edit"></i></a>
			</div>
		</td>
	</tr>
	</#list>
	</tbody>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'query_assets'/>